home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
explor2a
/
explorer.frm
< prev
next >
Wrap
Text File
|
1999-09-27
|
6KB
|
159 lines
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain
Caption = "Form1"
ClientHeight = 5175
ClientLeft = 60
ClientTop = 345
ClientWidth = 11370
LinkTopic = "Form1"
ScaleHeight = 5175
ScaleWidth = 11370
StartUpPosition = 3 'Windows Default
Begin MSComctlLib.TreeView DirList
Height = 4575
Left = 120
TabIndex = 1
Top = 120
Width = 3255
_ExtentX = 5741
_ExtentY = 8070
_Version = 393217
HideSelection = 0 'False
LabelEdit = 1
Style = 5
Appearance = 1
End
Begin MSComctlLib.ImageList ImageList1
Left = 3720
Top = 4440
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 12
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":0000
Key = "fol"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":045C
Key = "file"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":0570
Key = "explorer"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":09C4
Key = "drv"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":0E18
Key = "dsktop"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":126C
Key = "mycomp"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":16C0
Key = "opnfol"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":1B18
Key = "cddrv"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":1F6C
Key = "remdrv"
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":23C0
Key = "floppy"
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":2814
Key = "netdrv"
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "ExplorerfrmMain.frx":2C68
Key = "nethood"
EndProperty
EndProperty
End
Begin MSComctlLib.ListView DirImage
Height = 4575
Left = 3480
TabIndex = 0
Top = 120
Width = 7695
_ExtentX = 13573
_ExtentY = 8070
View = 3
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 4
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Name"
Object.Width = 5292
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Size"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Type"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Modified"
Object.Width = 2540
EndProperty
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DirImage_DblClick()
If DirImage.SelectedItem.SubItems(2) = TXT_DIR_TYPE_NAME Then
LoadDirectoryProfile DirImage.SelectedItem.Key
End If
End Sub
Private Sub DirList_DblClick()
ExpandDirectory DirList.SelectedItem, DirList
LoadDirectoryProfile DirList.SelectedItem.Key
End Sub
Private Sub Form_Load()
DirImage.SmallIcons = ImageList1
DirList.ImageList = ImageList1
'DirList.SelectedItem.ExpandedImage = ImageList1 'IMG_OPENFOLDER_KEY
LoadDirectoryProfile "C:\"
LoadShellPaths
'DirList.Nodes.Add , , SHELL_PATHS(1), "Desktop", IMG_DESKTOP_KEY
DirList.Nodes.Add , , TXT_MYCOMP_TITLE, TXT_MYCOMP_TITLE, IMG_MYCOMP_KEY
'ExpandDirectory DirList.Nodes(1), DirList
'DirList.Nodes(1).Expanded = True
GenerateMycompStuff DirList
End Sub
'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders